package com.chenwut.threadDemo.waitandnotify;

/**
 * @author ChenPi
 * @since 2024/09/19 10:51
 */
public class ThreadDemo {
    public static void main(String[] args) {
        /**
         * 完成生产者和消费者（等待唤醒机制）的代码
         * 实现线程轮流交替执行的效果
         */
        Cook c = new Cook();
        Foodie f = new Foodie();

        c.start();
        f.start();
    }
}
